import request from "@/utils/request";

// 分户管理
export function splittingFamilyList(data) {
	return request({
		url: "/operate/splittingFamilyList",
		method: "GET",
		params: {
			...data
		},
	});
}
// 分户录入
export function addSplittingFamily(data) {
	return request({
		url: "/operate/addSplittingFamily",
		method: "Post",
		data: {
			...data
		},
	});
}
// 分户提交
export function splittingFamilySubmit(data) {
	return request({
		url: "/operate/splittingFamilySubmit",
		method: "GET",
		params: {
			...data
		},
	});
}
// 分户详情
export function splittingFamilyData(data) {
	return request({
		url: "/operate/splittingFamilyData",
		method: "GET",
		params: {
			...data
		},
	});
}
// 分户修改
export function updSplittingFamily(data) {
	return request({
		url: "/operate/updSplittingFamily",
		method: "Post",
		data: {
			...data
		},
	});
}
// 分户删除
export function delSplittingFamilySubmit(data) {
	return request({
		url: "/operate/delSplittingFamilySubmit",
		method: "GET",
		params: {
			...data
		},
	});
}

// 并户管理
export function binghuList(data) {
	return request({
		url: "/operate/binghuList",
		method: "GET",
		params: {
			...data
		},
	});
}
// 并户录入
export function addBinghu(data) {
	return request({
		url: "/operate/addBinghu",
		method: "Post",
		data: {
			...data
		},
	});
}
// 并户提交
export function binghuSubmit(data) {
	return request({
		url: "/operate/binghuSubmit",
		method: "GET",
		params: {
			...data
		},
	});
}
// 并户详情
export function binghuData(data) {
	return request({
		url: "/operate/binghuData",
		method: "GET",
		params: {
			...data
		},
	});
}
// 并户修改
export function updBinghu(data) {
	return request({
		url: "/operate/updBinghu",
		method: "Post",
		data: {
			...data
		},
	});
}
// 并户删除
export function delBinghu(data) {
	return request({
		url: "/operate/delBinghu",
		method: "GET",
		params: {
			...data
		},
	});
}

// 过户管理
export function guohuList(data) {
	return request({
		url: "/operate/guohuList",
		method: "GET",
		params: {
			...data
		},
	});
}
// 过户录入
export function addGuohu(data) {
	return request({
		url: "/operate/addGuohu",
		method: "Post",
		data: {
			...data
		},
	});
}
// 过户提交
export function guohuSubmit(data) {
	return request({
		url: "/operate/guohuSubmit",
		method: "GET",
		params: {
			...data
		},
	});
}
// 过户详情
export function guohuData(data) {
	return request({
		url: "/operate/guohuData",
		method: "GET",
		params: {
			...data
		},
	});
}
// 过户修改
export function updGuohu(data) {
	return request({
		url: "/operate/updGuohu",
		method: "Post",
		data: {
			...data
		},
	});
}
// 过户删除
export function delGuohu(data) {
	return request({
		url: "/operate/delGuohu",
		method: "GET",
		params: {
			...data
		},
	});
}

// 转让管理
export function zhuanrangList(data) {
	return request({
		url: "/operate/zhuanrangList",
		method: "GET",
		params: {
			...data
		},
	});
}
// 转让录入
export function addzhuanrang(data) {
	return request({
		url: "/operate/addzhuanrang",
		method: "Post",
		data: {
			...data
		},
	});
}
// 转让提交
export function zhuanrangSubmit(data) {
	return request({
		url: "/operate/zhuanrangSubmit",
		method: "GET",
		params: {
			...data
		},
	});
}
// 转让详情
export function zhuanrangData(data) {
	return request({
		url: "/operate/zhuanrangData",
		method: "GET",
		params: {
			...data
		},
	});
}
// 转让修改
export function updzhuanrang(data) {
	return request({
		url: "/operate/updzhuanrang",
		method: "Post",
		data: {
			...data
		},
	});
}
// 转让删除
export function delZhuanrang(data) {
	return request({
		url: "/operate/delZhuanrang",
		method: "GET",
		params: {
			...data
		},
	});
}

// 承租户档案
export function rentList(data) {
	return request({
		url: "/operate/rentList",
		method: "GET",
		params: {
			...data
		},
	});
}
// 承租户删除
export function delRenterData(data) {
	return request({
		url: "/operate/delRenterData",
		method: "GET",
		params: {
			...data
		},
	});
}
// 档案变动依据
export function renterRunWayPage(data) {
	return request({
		url: "/operate/renterRunWayPage",
		method: "GET",
		params: {
			...data
		},
	});
}
// 档案变动记录
export function renterChangePage(data) {
	return request({
		url: "/operate/renterChangePage",
		method: "GET",
		params: {
			...data
		},
	});
}
// 承租户录入
export function addRenter(data) {
	return request({
		url: "/operate/addRenter",
		method: "Post",
		data: {
			...data
		},
	});
}
// 承租户修改
export function updRenterData(data) {
	return request({
		url: "/operate/updRenterData",
		method: "Post",
		data: {
			...data
		},
	});
}

// 承租户房间信息
export function renterRoomList(data) {
	return request({
		url: "/operate/renterRoomList",
		method: "GET",
		params: {
			...data
		},
	});
}
// 根据所号查房间
export function roomByBlockNo(data) {
	return request({
		url: "/operate/roomByBlockNo",
		method: "GET",
		params: {
			...data
		},
	});
}
// 承租户添加房间
export function addRenterRoom(data) {
	return request({
		url: "/operate/addRenterRoom",
		method: "GET",
		params: {
			...data
		},
	});
}
// 承租户批量添加房间
export function addAllRenterRoom(data) {
	return request({
		url: "/operate/addAllRenterRoom?rentId="+data.rentId+'&roomId='+data.roomIds,
		method: "GET"
	});
}
// 承租户删除房间
export function delRenterRoom(data) {
	return request({
		url: "/operate/delRenterRoom",
		method: "GET",
		params: {
			...data
		},
	});
}
// 承租户历史租金
export function renterYearRentList(data) {
	return request({
		url: "/operate/renterYearRentList",
		method: "GET",
		params: {
			...data
		},
	});
}
// 承租户添加历史租金
export function addRenterYearRent(data) {
	return request({
		url: "/operate/addRenterYearRent",
		method: "Post",
		data: {
			...data
		},
	});
}
// 承租户修改历史租金
export function updRenterYearRent(data) {
	return request({
		url: "/operate/updRenterYearRent",
		method: "Post",
		data: {
			...data
		},
	});
}
// 承租户删除历史租金
export function delRenterYearRent(data) {
	return request({
		url: "/operate/delRenterYearRent",
		method: "GET",
		params: {
			...data
		},
	});
}
// 建账列表
export function establishingList(data) {
	return request({
		url: "/operate/establishingList",
		method: "GET",
		params: {
			...data
		},
	});
}
// 执行建账
export function jianzhangExecute(data) {
	return request({
		url: "/operate/jianzhangExecute",
		method: "GET",
		params: {
			...data
		},
	});
}
// 根据id查经租档案信息
export function queryOneRent(data) {
	return request({
		url: "/operate/queryOneRent",
		method: "GET",
		params: {
			...data
		},
	});
}
// 根据id取消建账
export function jianzhangDel(data) {
	return request({
		url: "/operate/jianzhangDel",
		method: "GET",
		params: {
			...data
		},
	});
}
// 生成合同号
export function createCID(data) {
	return request({
		url: "/operate/createCID",
		method: "GET",
		params: {
			...data
		},
	});
}
// 根据合同号获取非住宅房屋信息
export function getHouseDateByCid(data) {
	return request({
		url: "/operate/getHouseDateByCid",
		method: "GET",
		params: {
			...data
		},
	});
}
// 承租户修改房间
export function updRenterRoom(data) {
	return request({
		url: "/operate/updRenterRoom",
		method: "Post",
		data: {
			...data
		},
	});
}

// 承租户违约金
export function renterPenaltyList(data) {
	return request({
		url: "/operate/renterPenaltyList",
		method: "GET",
		params: {
			...data
		},
	});
}
export function listContract(data) {
	return request({
		url: "/contractText/listContract",
		method: "GET",
		params: {
			...data
		},
	});
}
// 承租户添加违约金
export function addRenterPenalty(data) {
	return request({
		url: "/operate/addRenterPenalty",
		method: "Post",
		data: {
			...data
		},
	});
}
// 承租户修改违约金
export function updRenterPenalty(data) {
	return request({
		url: "/operate/updRenterPenalty",
		method: "Post",
		data: {
			...data
		},
	});
}
// 承租户结清违约金
export function settleRenterPenalty(data) {
	return request({
		url: "/operate/settleRenterPenalty",
		method: "GET",
		params: {
			...data
		},
	});
}
// 租金收缴列表
export function renterCollectList(data) {
	return request({
		url: "/operate/renterCollectList",
		method: "GET",
		params: {
			...data
		},
	});
}
//添加租金收缴
export function addRenterCollect(data) {
	return request({
		url: "/operate/addRenterCollect",
		method: "Post",
		data: {
			...data
		},
	});
}
//修改租金收缴
export function updRenterCollect(data) {
	return request({
		url: "/operate/updRenterCollect",
		method: "Post",
		data: {
			...data
		},
	});
}
// 删除租金收缴
export function delRenterCollect(data) {
	return request({
		url: "/operate/delRenterCollect",
		method: "GET",
		params: {
			...data
		},
	});
}

// 欠租列表
export function arrearsPage(data) {
	return request({
		url: "/operate/arrearsPage",
		method: "GET",
		params: {
			...data
		},
	});
}
// 根据合同获取经租信息
export function getRent(data) {
	return request({
		url: "/block/getRent",
		method: "GET",
		params: {
			...data
		},
	});
}
// 创建合同 /contractText/createContract
export function createContract(data) {
	return request({
		url: "/contractText/createContract",
		method: "POST",
		data: {
			...data
		},
	});
}
// 获取附属所号
export function getAffiliatedByBlock(data) {
	return request({
		url: "/operate/getAffiliatedByBlock",
		method: "GET",
		params: {
			...data
		},
	});
}
// 租金调整列表
export function RoomScoreList(data) {
	return request({
		url: "/operate/RoomScoreList",
		method: "GET",
		params: {
			...data
		},
	});
}
//添加租金调整
export function addRoomScore(data) {
	return request({
		url: "/operate/addRoomScore",
		method: "Post",
		data: {
			...data
		},
	});
}

//添加非住宅租金调整
export function importNotRoomScoreExcel(data) {
	return request({
		url: "/operate/importNotRoomScoreExcel",
		method: "Post",
		data: {
			...data
		},
	});
}
//修改租金调整
export function updRoomScore(data) {
	return request({
		url: "/operate/updRoomScore",
		method: "Post",
		data: {
			...data
		},
	});
}
// 删除租金调整
export function delRoomScore(data) {
	return request({
		url: "/operate/delRoomScore",
		method: "GET",
		params: {
			...data
		},
	});
}
// 获取租金分值
export function getScore(data) {
	return request({
		url: "/operate/getScore",
		method: "GET",
		params: {
			...data
		},
	});
}


// 催收列表
export function csPage(data) {
	return request({
		url: "/operate/csPage",
		method: "GET",
		params: {
			...data
		},
	});
}

//修改催收详情
export function updCsData(data) {
	return request({
		url: "/operate/updCsData",
		method: "Post",
		data: {
			...data
		},
	});
}
// 催收详情
export function csData(data) {
	return request({
		url: "/operate/csData",
		method: "GET",
		params: {
			...data
		},
	});
}

// 多个所获取合同
export function getRenterByBlock(data) {
	return request({
		url: "/operate/getRenterByBlock?blockno="+data.blockno,
		method: "GET",
	});
}
// /mall-admin/contractText/updateContract
export function updateContract(data) {
	return request({
		url: "/contractText/updateContract",
		method: "POST",
		data: {
			...data
		},
	});
}
// /mall-admin/contractText/deleteContract/{id}
export function deleteContract(data) {
	return request({
		url: `/contractText/deleteContract/${data}`,
		method: "POST",

	});
}
// /mall-admin/contractText/faFangContract/{id}

export function faFangContract(data) {
	return request({
		url: `/contractText/faFangContract/${data}`,
		method: "POST",

	});
}

// /mall-admin/contractText/deleteContract/{id}
export function deleteContractById(data) {
	return request({
		url: `/contractText/deleteContract/${data}`,
		method: "POST",

	});
}

// /mall-admin/contractText/authContract/{id}

export function authContract(data) {
	return request({
		url: `/contractText/authContract/${data}`,
		method: "POST",

	});
}

// /mall-admin/contractText/submitContract/{id}

export function submitContract(data) {
	return request({
		url: `/contractText/submitContract/${data}`,
		method: "POST",
	});
}

// 分页获取合同发放明细列表
export function listContractRecorde(data) {
	return request({
		url: "/contractText/listContractRecorde",
		method: "GET",
		params: {
			...data
		},
	});
}
export function setBack(data) {
	return request({
		url: `/contractText/setBack/${data}`,
		method: "POST",
	});
}
export function setBaoFei(data) {
	return request({
		url: `/contractText/setBaoFei/${data}`,
		method: "POST",
	});
}
export function setBaofeiStatement(data) {
	return request({
		url: `/contractText/setBaofeiStatement/${data}`,
		method: "POST",
	});
}